users = {
    'admin': {'name': 'admin', 'password': '123', 'status': True},
    'zzr': {'name': 'zzr', 'password': '123', 'status': True},
    'zzr2': {'name': 'zzr2', 'password': '123', 'status': False}
}

for j in range(3):  # 3次尝试机会
    user = input('请输入用户名：')
    pwd = input('请输入密码：')
    if user in users and pwd == users[user]['password'] and users[user]['status']:
        print('登录成功')
        break
    elif user in users and pwd != users[user]['password']:
        print('密码输入错误')
    elif user in users and not users[user]['status']:
        print('用户已入黑名单')
